﻿@{
    ViewBag.Title = @ViewBag.AppName;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<!DOCTYPE html>
<html>
<head id="Head1">
    <link id="easyuiTheme" href="~/Res/easyui/themes/metro/easyui.css" rel="stylesheet" type="text/css" />
    @*easyui.css需要置前，否则下面的图标可能无法加载*@
    <link href="~/Content/default.css" rel="stylesheet" type="text/css" />
    @*default.css需要在myicon前*@
    <link href="~/Res/easyui/themes/myicon.css" rel="stylesheet" type="text/css" />
    @*引入自定义图标*@
    <link href="~/Res/css/frame.css" rel="stylesheet" type="text/css" />
    <link href="~/Res/css/mainMenu.css" rel="stylesheet" type="text/css" />
    @*引入自定义框架css*@

    <script src="~/Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
    @*防止js出错，建议删除jquery-1.8.3.js*@
    <script src="~/Res/easyui/jquery.cookie.js" type="text/javascript"></script>
    @*引入jquery的cookie以支持easyuiTheme的缓存*@

    <script src="~/Res/easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="~/Res/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>

    @*引入kindeditor*@
    @*<link href="~/Res/kindeditor/themes/default/default.css" rel="stylesheet" />
        <script src="~/Res/kindeditor/kindeditor-all-min.js"></script>
        <script src="~/Res/kindeditor/lang/zh_CN.js"></script>
        <script src="~/Res/kindeditor/plugins/code/prettify.js"></script>*@

    @*引入自定义框架js*@
    <script src="~/Res/scripts/jquery.common.js" type="text/javascript"></script>
    <script src="~/Res/Views/MainMenu.js" type="text/javascript"></script>
    <script src="~/Res/scripts/json.js"></script>
    <script src="~/Res/scripts/jquery.frame.js" type="text/javascript"></script>
    @*引入自定义框架js*@
</head>

<body class="easyui-layout">
    <!--未启用脚本的提醒-->
    <noscript>
        <div style="position: absolute; z-index: 100000; height: 2046px; top: 0px; left: 0px; width: 100%; background: white; text-align: center;">
            <img src="images/noscript.gif" alt='抱歉，请开启脚本支持！' />
        </div>
    </noscript>
    <!--顶部内容定义-->
    <div id="layout-north" data-options="region:'north',border:false">
        <div class="panel-header north-box">
            <!--左上角内容-->
            <div id="layout-logo"><strong>@ViewBag.AppName</strong></div>
            <!--中上内容-->
            @*<div id="layout-center"></div>*@
            <!--右上角功能区域-->
            <div id="layout-functions">
                <a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-user'">欢迎您：[@Bricks.Business.Service.CommonSupport.SystemData.Instance.CurrentUser.UserName]@*&nbsp;&nbsp;当前时间：<span id="date"></span>*@</a>
                @*date在jquery.frame进行赋值*@
                <a href="javascript:void(0)" class="easyui-menubutton" data-options="menu:'#set-themes',iconCls:'icon-drawings'">切换主题</a>
                <div id="set-themes" style="display: none; width: 120px;">
                    <div onclick="ChangeTheme('default')">Default</div>
                    <div class="menu-sep"></div>
                    <div onclick="ChangeTheme('metro')">Metro</div>
                    <div onclick="ChangeTheme('gray')">Gray</div>
                    <div onclick="ChangeTheme('black')">Black</div>
                    <div onclick="ChangeTheme('bootstrap')">Bootstrap</div>
                </div>
                <a href="javascript:void(0)" id='btnChangePassword' class="easyui-linkbutton" onclick="ChangePassword()" data-options="plain:true,iconCls:'icon-config'">修改密码</a>
                <a href="javascript:void(0)" class="easyui-linkbutton" onclick="Logout()" data-options="plain:true,iconCls:'icon-exit'">注销登录</a>
            </div>
        </div>

        <!--添加顶部导航菜单栏（一级）-->
        <div class="panel-header menu-box">
            @Html.Raw(ViewBag.UserMenues)

            @*
                 @Html.Raw(ViewBag.UserMenues)
                <div id="menu">
                    <ul>
                        <li><a id="n1" class="current" href="javascript:void(0)" onclick="GoToHomeTab()">我的工作台</a></li>
                        <li><a id="f8dd6181-1487-4b3b-90fc-3c577ce1236f"  href="javascript:void(0)" onclick="OpenAccordion('f8dd6181-1487-4b3b-90fc-3c577ce1236f')">系统设置</a></li>
                        <li><a id="4b1e9270-7095-4e79-af45-4fdbdf230e01"  href="javascript:void(0)" onclick="OpenAccordion('4b1e9270-7095-4e79-af45-4fdbdf230e01')">流程管理</a></li>
                        <li><a id="4b1e9270-7095-4e79-af45-4fdbdf230e11"  href="javascript:void(0)" onclick="OpenAccordion('4b1e9270-7095-4e79-af45-4fdbdf230e11')">变更管理</a></li>
                    </ul>
                </div>
                <div class="secondNav">
                    <div id="menupidf8dd6181-1487-4b3b-90fc-3c577ce1236f" style="padding:5px;background:#fafafa;border:1px solid #ccc;display:none;" fit="true">
                        <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-cancel">Cancel</a>
                        <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-reload">Refresh</a>
                        <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-search">Query</a>
                        <a href="#" class="easyui-linkbutton" plain="true">text button</a>
                        <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-print">Print</a>
                        <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-help"></a>
                        <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-save"></a>
                        <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-back"></a>
                    </div>
                     <div id="menupidf8dd6181-1487-4b3b-90fc-3c577ce1236f1" class="subnav disable" style="display:none;">
                         <p>
                             <span>
                                 <a href="?MenuID=2396c5df-7e40-4a1f-aabd-9f3c816adb50" title="基础设置">基础设置</a>
                                 <a href="?MenuID=c6b6c2dc-31d3-4ed0-b7e3-3fb23399fe1f" title="组织机构">组织机构</a>
                            </span>
                         </p>
                    </div>
                    <div id="menupid4b1e9270-7095-4e79-af45-4fdbdf230e01" class="subnav disable" style="display:none;"><p><span><a href="/HolidayRequest/HolidayRequest?MenuID=f8d56725-1ddd-4b4d-8e73-b28b15c929bc" title="请假申请">请假申请</a><a href="/HolidayRequest/HolidayRequestList?MenuID=f8d56725-1ddd-4b4d-8e73-b28b15c929dd" title="请假列表">请假列表</a><a href="/BaklogTask/BaklogTaskList?MenuID=f8d56725-1ddd-4b4d-8e73-b28b15c929ee" title="代办列表">代办列表</a></span></p></div>
                    <div id="menupid4b1e9270-7095-4e79-af45-4fdbdf230e11" class="subnav disable" style="display:none;">
                        <p>
                            <span>
                                <a href="/Alter/Alter?MenuID=f8d56725-1ddd-4b4d-8e73-b28b15c92922" title="过程管理">过程管理</a>
                                <a href="/Alter/AlterList?MenuID=f8d56725-1ddd-4b4d-8e73-b28b15c92933" title="过程管理列表">过程管理列表</a>
                                <a href="/AltereOrder/AlterOrder?MenuID=f8d56725-1ddd-4b4d-8e73-b28b15c92944" title="变更令">变更令</a>
                                <a href="/AlterOrder/AlterOrderList?MenuID=f8d56725-1ddd-4b4d-8e73-b28b15c92955" title="变更令列表">变更令列表</a>
                            </span>
                        </p>
                    </div>
                 </div>*@
        </div>
    </div>
    @*

         <!--导航菜单-->
        <div id="layout-west" title="功能导航" data-options="region:'west',split:true,border:true">
             <div id="accordion" class="easyui-accordion" data-options="fit:true,border:false,animate:true">
                 <!--从数据库读取用户的菜单-->
                 Html.Raw(ViewBag.UserMenues)
                 <div title='系统设置' data-options='iconCls:"icon-settings"'>
                     <ul class='easyui-tree' data-options='lines:true,loadFilter:MenuloadFilter,onClick:MenuOnClick'>
                         <li iconcls='icon-monitor' data-options='attributes:{href:"?id=511fd74c9e794f22a3235554f9706c2e",type:"Null"}'>
                             <span>基础控制</span>
                             <ul>
                                 <li iconcls='icon-config' data-options='attributes:{href:"http://www.sinaapp.com",type:"Dialog",width:850,height:500,modal:true}'><span>参数设置</span></li>
                                 <li iconcls='icon-bricks' data-options='attributes:{href:"/ActionInfo/Index",type:"Tab"}'><span>按钮管理</span></li>
                                 <li iconcls='icon-sitemap' data-options='attributes:{href:"http://www.baidu.com",type:"Tab"}'><span>菜单管理</span></li>
                             </ul>
                         </li>
                         <li iconcls='icon-chartorganisation' data-options='attributes:{href:"?id=266a02014f2840358241a62807975809",type:"Null"}'>
                             <span>组织架构</span>
                             <ul>
                                 <li iconcls='icon-user' data-options='attributes:{href:"sys/department/index.aspx?id=453a8f8cd737463d8fe68fc614e37a87",type:"Tab"}'><span>部门管理</span></li>
                                 <li iconcls='icon-special' data-options='attributes:{href:"sys/role/index.aspx?id=4f5c7e98b49044efa17ac052e3733212",type:"Tab"}'><span>角色管理</span></li>
                                 <li iconcls='icon-customers' data-options='attributes:{href:"sys/user/index.aspx?id=0f7240996ad94573b90547c6f8354faf",type:"Tab"}'><span>用户管理</span></li>
                             </ul>
                         </li>
                     </ul>
                 </div>
                 <div title='信息管理' data-options='iconCls:"icon-archives"'>
                     <ul class='easyui-tree' data-options='lines:true,loadFilter:MenuloadFilter,onClick:MenuOnClick'>
                         <li iconcls='icon-application_view_list' data-options='attributes:{href:"?id=960adfaeb3474e0bb59d9c4ec2e453b8",type:"Null"}'>
                             <span>基础信息</span>
                             <ul>
                                 <li iconcls='icon-world' data-options='attributes:{href:"gen/new/index.aspx?id=e2dfe5b09fcb47c19c7eacf4d11fced1",type:"Tab"}'><span>新闻管理</span></li>
                                 <li iconcls='icon-ruled_page' data-options='attributes:{href:"gen/content/index.aspx?id=a48f29fe1ee14a2faeeb76f50b8c5f85",type:"Tab"}'><span>标准信息</span></li>
                                 <li iconcls='icon-application_home' data-options='attributes:{href:"tour/website/script.js?id=a2bb21c8f7af4435aa004c33a874fa7d",type:"Dialog"}'><span>网站设置</span></li>
                                 <li iconcls='icon-design' data-options='attributes:{href:"gen/focu/index.aspx?id=cccebd9f1aca4b7d8d4db6fd4108e23e",type:"Tab"}'><span>焦点图片</span></li>
                             </ul>
                         </li>
                     </ul>
                 </div>
             </div>
         </div>
    *@
    <!--主面板-->
    <div id="layout-center" data-options="region:'center',border:true">
        <div id="abcddd" style="width: 100%; height: 100%; margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; overflow: hidden;">
            <iframe id="frame" width="100%" height="100%" src="/Expense/ScheduleSearchList" frameborder="0" scrolling="auto" style="width: 100%; height: 100%; overflow-y: auto;"></iframe>
            @*<iframe width="100%" height="100%" src="http://www.126.com" frameborder="0" scrolling="auto"></iframe>*@
        </div>
        @*<a href="#" onclick="javascript:$('#pp').panel('open')">Open</a>*@


        <!--Tab右边工具栏-->
        @*<div id="layout-tabs-tools" style="display: none;">
                <a href="javascript:void(0)" title="转到主页" class="easyui-linkbutton" onclick="GoToHomeTab()" data-options="plain:true,iconCls:'icon-home'"></a>
                <a href="javascript:void(0)" title="关闭当前" class="easyui-linkbutton" onclick="CloseSelectedTab()" data-options="plain:true,iconCls:'icon-busy'"></a>
                <a href="javascript:void(0)" title="关闭全部" class="easyui-linkbutton" onclick="CloseAllTabs()" data-options="plain:true,iconCls:'icon-cancel'"></a>
            </div>*@
        <!--Tab右键菜单-->
        @*<div id="layout-tabs-menu" style="display: none;">
                <div type="refresh" data-options="iconCls:'icon-reload'">刷新</div>
                <div class="menu-sep"></div>
                <div type="close">关闭</div>
                <div type="closeOther">关闭其他</div>
                <div type="closeAll">关闭所有</div>
            </div>*@
    </div>
    <!--底部版权-->
    <div id="layout-south" data-options="region:'south',border:false" style="height: 30px;">
        <div class="panel-header south-box">
            <span><strong>@ViewBag.Copyright</strong></span>
        </div>
    </div>
    <!--此处用于弹出Dialog（showMyWindow方法）-->
    <div id="myWindow"></div>

</body>
</html>
